package com.lv.service.event

import android.os.Parcelable
import androidx.annotation.Keep
import com.jeremyliao.liveeventbus.core.LiveEvent
import com.lv.service.bean.ApproveNewBean
import com.lv.service.bean.RefundBean
import kotlinx.parcelize.Parcelize

/**
 * 作者： ygx
 * 创建日期：2023/3/1 1:49 PM
 * 签名： 天行健，君子以自强不息；地势坤，君子以厚德载物。
 * -    _              _           _     _   ____  _             _ _
 * -   / \   _ __   __| |_ __ ___ (_) __| | / ___|| |_ _   _  __| (_) ___
 * -  / _ \ | '_ \ / _` | '__/ _ \| |/ _` | \___ \| __| | | |/ _` | |/ _ \
 * - / ___ \| | | | (_| | | | (_) | | (_| |  ___) | |_| |_| | (_| | | (_) |
 * -/_/   \_\_| |_|\__,_|_|  \___/|_|\__,_| |____/ \__|\__,_|\__,_|_|\___/
 * <p>
 * You never know what you can do until you try !
 * ----------------------------------------------------------------
 * 描述：消息 刷新状态
 */
//审批消息通知
class MessageApproveEvent(
    val approveBean: ApproveNewBean?,
    val tag: Int = 0// 0 增名片 1 改 2 删 3增客户
) : LiveEvent {
}
class MessageRefundEvent(
    val approveBean: RefundBean?,
    val tag: Int = 0
) : LiveEvent {
}

@Keep
data class MessageReadEvent(
    val tag: String,
    val location: Int = -1,//刷新位置 0 我的 商机
//    val cirItem: MessageBean? = null,
) : LiveEvent

@Keep
data class PhoneBeanEvent(
    var seed: String?,//我要找货列表 0 已读 1 未读
    var load: String?,//一级消息tab里我要找货消息红点
    var tag: Int = -1,//0 我要找货
) : LiveEvent

@Keep
data class MessageReadBeanEvent(
    var id: String?,
    var read: Int? = 1,// 0 已读 1 未读
    var tag: Int = -1,//0 指定商家
) : LiveEvent


@Parcelize
@Keep
class MediaSelectedEvent(
    var tag: MediaSelectedEventEnum,
    var name: String?,
    var width: Int? = 0,
    var height: Int? = 0,

    ) : LiveEvent, Parcelable {
}

// 定义一个枚举类型
enum class MediaSelectedEventEnum {
    IMAGE, VIDEO
}
